package com.qf.service;

/*
 *  @author Administrator
 *  @version V1.0
 *  @Project smartdeviceplatgorm
 *  @Package com.qf.mapper
 *  @Description
 *  @Date2022/3/14 0014 16:43
 */

import com.github.pagehelper.PageInfo;
import com.qf.bean.SysUserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

public interface SysUserInfoService {

    SysUserInfo findById(Integer userId);//根据id发现用户

    PageInfo<SysUserInfo> findAllSysUserInfo(int pageSize, int pageNum);//根据用户分页查询

    void addSysUserInfo(SysUserInfo sysUserInfo);//添加用户

    SysUserInfo findByUsername(String username);//根据用户名发现用户

    SysUserInfo findByEmail(String email);//根据邮箱发现用户

    SysUserInfo findByPhone(String phone);//根据手机号发现用户

    SysUserInfo findByUsernameAndPassword(String userName,String passWord);//登录

    void stopLog(Integer id);//冻结用户

    void updateLastTime(Integer id, Date date);//更新用户最后登录时间

    void updateCurrentTime(Integer id,Date date);//更新当前登录时间

    void updateSysUserInfo(SysUserInfo sysUserInfo);//修改用户

    void updatePassword(@Param("password") String password,@Param("uId") Integer uId);//修改密码
}
